<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>这是首页</title>
    <style>
        ul {
            list-style: none;
        }

        a {
            text-decoration: none;
        }
    </style>
</head>

<body>
    {% if latest_question_list %}
    <ul>
        {% for question in latest_question_list %}
<!--        <li><a href="/polls/{{ question.id }}/">{{ question.question_text }}</a></li>-->
        <li><a href="{% url 'polls:detail' question.id %}">{{ question.question_text }}</a></li>

        {% endfor %}
    </ul>
    {% else %}
    <p>No polls are available.</p>
    {% endif %}
    <h1>{{question}}</h1>
</body>

</html>